package com.zerui.manager.deviceTouchSync.domainservice;

import com.zerui.manager.deviceTouchSync.DeviceTouchSync;
import com.zerui.manager.deviceTouchSync.gateway.DeviceTouchSyncGateWay;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.time.LocalDateTime;

/**
 * 设备网关接口
 *
 * @author pyzhang
 * @since 2024-04-11
 */
@Component
public class DeviceTouchSyncRepository {
    @Resource
    private DeviceTouchSyncGateWay deviceTouchSyncGateWay;

    public Long addDeviceTouchSync(DeviceTouchSync deviceTouchSync) {
        return deviceTouchSyncGateWay.addDeviceTouchSync(deviceTouchSync);
    }

    public DeviceTouchSync selectById(Long id) {
        return deviceTouchSyncGateWay.selectById(id);
    }

    public void deleteById(Long id) {
        deviceTouchSyncGateWay.deleteById(id);
    }

    public void syncStatus(Long id, Integer syncCode, LocalDateTime date) {
        deviceTouchSyncGateWay.syncStatus(id, syncCode, date);
    }

    public void updateSyncInfo(DeviceTouchSync touchSync) {
        deviceTouchSyncGateWay.updateSyncInfo(touchSync);
    }


}